package xyz.zhouzhaodong.crm.service;

import xyz.zhouzhaodong.crm.dto.PayrollDto;
import xyz.zhouzhaodong.crm.entity.Payroll;
import com.baomidou.mybatisplus.extension.service.IService;
import xyz.zhouzhaodong.crm.util.RestMessage;

/**
 * <p>
 * 薪资表 服务类
 * </p>
 *
 * @author zhouzhaodong
 * @since 2020-06-21
 */
public interface IPayrollService extends IService<Payroll> {

    /**
     * 新增薪资
     * @param payroll
     * @return
     */
    RestMessage addPayroll(Payroll payroll);

    /**
     * 删除薪资
     * @param payroll
     * @return
     */
    RestMessage deletePayroll(Payroll payroll);

    /**
     * 修改薪资
     * @param payroll
     * @return
     */
    RestMessage updatePayroll(Payroll payroll);

    /**
     * 查询薪资
     * @param payrollDto
     * @return
     */
    RestMessage selectPayroll(PayrollDto payrollDto);

}
